package com.tjut.oop.hol6;

public class Lecture extends Student {
	// 新增属性：演讲成绩
	private double lecture;
	// 新增属性：作品成绩
	private double literature;

	@Override
	public void showAll() {
		// 调用父类方法
		super.showAll();
		setStuGrade(lecture * 0.35 + literature * 0.35 + getFinalTerm() * 0.15 + getMidTerm() * 0.15);
		System.out.println("学生总成绩为：" + getStuGrade());
	}

	public Lecture(double lecture, double literature,int stuAge, String stuNam, int stuNum, String stuGen, double midTerm,
			double finalTerm) {
		super(stuAge,stuNam, stuNum, stuGen, midTerm, finalTerm);
		this.lecture = lecture;
		this.literature = literature;
	}

}
